﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTO;
using BUS;

public partial class DanhSachChucNangMod : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserOnline"] == null)
            Response.Redirect("~/Default.aspx");
        else
        {
            ThanhVienDTO thanhvien = new ThanhVienDTO();
            thanhvien = ThanhVienBUS.LayThanhVienTheoUserName(Session["UserOnline"].ToString());
            if (thanhvien.MaNhomThanhVien != 2)
                Response.Redirect("~/Default.aspx");
            else
                return;
        }    
    }
}
